package it.polimi.traveldream.ejbclient.eaos;

import java.util.List;

import it.polimi.traveldream.ejbclient.dtos.UserDTO;
import it.polimi.traveldream.utils.enums.UserRole;
import it.polimi.traveldream.utils.exceptions.NotSuchUserException;
import it.polimi.traveldream.utils.exceptions.NotUniqueUserException;

import javax.ejb.Local;

@Local
public interface AccountServiceEAO {
	public void registerUser(UserDTO user) throws NotUniqueUserException;
	public void unregisterUser(int userId) throws NotSuchUserException;
	public List<UserDTO> getUsers(UserRole role);
	public UserDTO getUser(String email) throws NotSuchUserException;
	public UserDTO getCurrentUser();
}
